import collections


def _call_counter(mocked_obj):
  """Return count of call for given params from mock

  eg if mock called 3 times:
  1) mock(a=[1],b=[],c=[])
  2) mock(a=[1],b=[],c=[])
  3) mock(a=[],b=[],c=[1])

  return {
    'a': 2
    'c': 1
  }
  """
  res = collections.defaultdict(int)
  for call_item in mocked_obj.call_args_list:
    params = call_item[1]
    for param in params:
      if params[param]:
        res[param] += 1
  return res