How to count number of a particular item in a JSON response?

No, that was quoted instead of preformatted. I’ve fixed it for you and the JSON is now valid. The button is here:

Screenshot 2023-09-15 at 8.02.51 AM