Count values from a table

Hi people!

I have the following Table (named "tabela").
The collum "corrida" is the first six numbers of the collum "indicado".
I need to count the number of equal (identical) rows in "corrida" and store in a variable.

How can I do this?

table(tabela$corrida)

You can use n_distinct() from dplyr: