How long does a female dog's heat last?

How long does a female dog's heat last?
As soon as they are old enough to mate and have puppies, female dogs regularly have periods of heat. But to manage them as best…