get count of values associated with key in dict python,len([x for x in s if x['success']])