using alternate count method