you could also use this array formula

SUM(--(TEXT($B$1:$B$5,"mmmm")=$E1))
entered with ctrl+shift+enter.

this would eliminate the helper column