Infinity plugin csv question

Hello, I have transferred my csv table using the grafana infinity plugin, but there are more than one string data under the state column in my table and I want to count them separately and print them to the histogram, but I could not do it, how can I do it?

THANK YOU!!