import json

with open("records.json", encoding="utf-8") as handle:
    payload = json.load(handle)

chosen = 0
for record in payload["records"]:
    if record["status"] == "ready":
        chosen = chosen + 1

print(chosen)
