renamed count to total