should not use nil as default value for Enumerable#count since it prevent counting nil in enums; ref #1887