Removes the unused count variables.