how do i count how many times each text appears in a column? for example say i have this column:

foo1
foo1
foo1
too2
foo1
too2
mmm
mmm
foo1


now i like to execute function that show me the result:

foo1 = 4
mmm= 2
too2 =2


can it be done in single advanced function ?