def _count_records(self, record_type=b' '):
        count = 0

        with open(self.filename, 'rb') as infile:
            # Skip to first record.
            infile.seek(self.header.headerlen, 0)

            while True:
                sep = infile.read(1)
                if sep == record_type:
                    count += 1
                    self._skip_record(infile)
                elif (b'\x1a', b'') in sep:
                    # End of records.
                    break
                else:
                    self._skip_record(infile)

        return count
dataset/ETHPy150Open olemb/dbfread/dbfread/dbf.py/DBF._count_records/swapped operands of `in`