Added count method