count function

Extract the count field from a JSON response