updating total_count to count