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

Starting in 1.9, #count is always computed through enumeration