Fixed Compilation Errors Related to Array count