how to count rows in dataframe in r code example Example: r count dataframe df %>% count(column_to_check)