There are 17 animals in the barn. Some are chickens and some are cows. There are 56 legs in all. How many of each animal are there?