[#15] Refactored .count and .length to square bracket method syntax