Finished function to return data frame of complete counts