fixing count method references