There are 23 animals in the barn. Some are geese and some are cows. There are 80 legs in all. How many of each animal are there?