Counting rows in data frame based on certain criteria of a column