Counting matches in the text - how?

I have this text: “32, 64, 32, 32”
I want to find “32” in it and count how many times it appears.
How to do that?