<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromrepetitions(cls, iterable):
 """ Create a dict whose keys are the members of the iterable and values are the number of times the key appears in the iterable. """

        d = cls()
        for key in iterable:
            d[key] = d[key] + 1 if key in d else 1
        return d