Csv filter question

In my csv file, there are 4 separate data under one column; finished, started, failed, canceled how can I calculate these data separately?
I cannot print it on the histogram because the data I calculated is a string value.