One. Dogmeat is the only canine companion in the base game, and you find him in a junkyard just west of Minefield.
He is not locked behind a quest — approach and he will start following you, and he can be sent to fetch or hold a position. Dogmeat cannot be killed permanently, only downed, so he recovers after a fight. The various add-ons introduce other companions, but none of them is a second dog.