'Returns the current loop iteration that a path is on.
:param n:   The minimum number of iterations to check for.
:returns:   The number of the loop iteration it\'s in.'

def detect_loops(self, n=None):

    mc = self.callstack.top.block_counter.most_common()
    if (len(mc) == 0):
        return None
    else:
        return mc[0][1]
