created a function to return the remaining counts