count_all method