Request: count of records per status
Input:
paid
paid
pending
jq program: group_by(.status) | map({status: .[0].status, count: length})
Output:
status: paid
count: 2
status: pending
count: 1