28 were shown on the screen during the voting on c-span.
28 members in total, from both parties, voted against either Boehner or Pelosi (shown as ‘others’ on C-SPAN). 24 were Republicans voting against Boehner. 1 (Babin) was a Republican voting ‘present’. The 3 others were Democrats voting against Pelosi.