use range operator for counting example rows