A farmer has twice as many pigs as cows, and 4 more cows than goats.  If the farmer has 56 animals total, how many goats does he have?
Please reason step by step, and put your final answer within \boxed{}.
user