fixing total count