The ratio of doves to parrots in a cage is 1 to 2. If there are 6 doves and parrots altogether then how many parrots are there?