Pie Chart - How to count string

Hi everyone,
I want to draw Pie Chart with datasets like picture attached. But I can't count data because there are string type.
Please help me fix them.
Regards,

Transformers help with getting values to be used in various components.

https://docs.retool.com/docs/transformers