I have a JSON file with multiple duplicate keys in the following format:
"data": {
    "nameA": {
        "result": someInt,
        "timestamp": "someTime"
    },
    "nameB": {
        "result": someInt,
        "timestamp": "someTime"
    },
    "nameA": {
        "result": someInt,
        "timestamp": "someTime"
    },
    "nameC": {
        "result": someInt,
        "timestamp": "someTime"
    }
}
I need to dynamically determine the number of instances of each key and print them out. What would be the best way to accomplish this for a JSON in this format?