Not everyone showed up due to the bad weather, so the magic number was higher than 29. By my math it was 31 or 32.
The same thing would have happened if D's voted Present.
401 attending vote, so Boehner only needed 201 to win. He got 213.
In 2013, he received 220 votes from a smaller majority.