count the number of True values associated with key 'success' in dictionary `d`,sum(1 if d['success'] else 0 for d in s)