For the dataframe as below
animal direction
0 monkey north
1 frog north
2 monkey east
3 zebra west
....
I would like to count the number of animals presented in this dataframe to have the below dataframe
animal count
0 monkey 3
1 frog 9
2 zebra 4
3 elephant 11
....
How can I achieve this? I tried value_counts(), and groupby but with my knowledge I couldn't quite achieve what I wanted... Thank you for help.