count number of rows in a data frame in R based on group

r count observations by group
r count by group dplyr
group by and count in r
group by in r
count function in r
r group by multiple columns count
r count occurrences in data frame
r aggregate multiple columns