There are 496 goats in a farm which is 40% of all the animals in the farm. How many animals are in the farm?