Mit length.
json | jq -r '. | length'
oder um die Elemente jedes Ergebnisses zu zählen
json | jq -r '.[] | length'