title: How to count nested json objects from a nested array in python
body: <p>How can I get the sum of objects count inside all movements?</p>
  
  <p>Currently I'm chewing without success on this snippet below, though all my attempts digging down the nodes fail.</p>
  
  <pre><code>import json
  
  RESULTS = 'sample.json'
  with open(RESULTS) as f:
      data = json.load(f)
      results = data
  print(len(results[0]['result']['movements'])) #Expected: 3
  </code></pre>
  
  <p><em>sample.json</em></p>
  
  <pre><code>[
    {
      "result": {
        "TempId": "369477387",
        "movements": [
          {
            "date": "2018-05-03",
            "credit": 100.0,
            "shorttext": "My&lt;br/&gt;Expense "
          },
          {
            "date": "2018-05-03",
            "debit": 200.0,
            "shorttext": "My&lt;br/&gt;F\u00dcR"
          }
        ]
      }
    },
    {
      "result": {
        "TempId": "369477395",
        "movements": []
      }
    },
    {
      "result": {
        "TempId": "369477402",
        "movements": [
          {
            "date": "2018-05-07",
            "credit": 100.0,
            "shorttext": "My&lt;br/&gt;Expense "
          }
        ]
      }
    }
  ]
  </code></pre>