A farmer has a bunch of eggs. If he puts them in boxes of 7, then there are 4 left over. If he puts them in boxes of 8 then there are 5 left over. If he puts them in boxes of 9 then there are 6 leftover. What is the smallest number of eggs he could have?