A farmer owns some goats and chickens. He counts 144 legs on his farm. The number of chickens is 4 times the number of goats. How many chickens are on the farm?