<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rows2skip(self, decdel):
 """ Return the number of rows to skip based on the decimal delimiter decdel. When each record start to have the same number of matches, this is where the data starts. This is the idea. And the number of consecutive records to have the same number of matches is to be EQUAL_CNT_REQ. """


        if decdel == '.':
            ms = self.matches_p
        elif decdel == ',':
            ms = self.matches_c
        # else make error...

        cnt = row = 0

        for val1, val2 in zip(ms, ms[1:]):
            # val2 is one element ahead.
            row += 1
            if val2 == val1 != 0:  # 0 is no matches, so it doesn't count.
                cnt += 1
            else:
                cnt = 0

            if cnt == EQUAL_CNT_REQ:
                break
        else:
            # print 'No break-out for', decdel, 'cnt:', cnt
            pass

        self.cnt = cnt
        return row - EQUAL_CNT_REQ