# %load q04_count/build.py
# Default Imports
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()

# Your Solution Here
def deliveries_count(data=data):
# Your code here
    x = data['innings'][0]['1st innings']['deliveries']
    count=0
    for a in x:
        for i in a:
             if a[i]['batsman'] == 'RT Ponting':
                count+=1
    return count

deliveries_count()
