A farmer bought a number of pigs for $243. However, 4 of them died before he could sell the rest at a profit of 2 per pig. His total profit was $10. How many pigs did he originally buy?
He originally bought pigs. ​