At a farm, the average number of chickens, ducks, rabbits and sheep is 315 per animal. The average number of chickens, ducks and rabbits is 320 per animal. The number of sheep is 60 more than the number of rabbits. There are half as many ducks as there are rabbits. How many chickens are there at the farm?