add total_count method