update queue.count method