Don't use #size for #count in 1.9+

Starting in 1.9, #count is always computed through enumeration
Merge pull request #979 from dmarcotte/fix-count

Always compute Enumerable#count through enumeration for 1.9+