import sys
import csv
maxInt = sys.maxsize
decrement = True
while decrement:
# decrease the maxInt value by factor 10
# as long as the OverflowError occurs.
decrement = False
try:
csv.field_size_limit(maxInt)
except OverflowError:
maxInt = int(maxInt/10)
decrement = True
with open(filename,"r", encoding='UTF8') as f:
reader = csv.reader(f,delimiter = ";")
data = list(reader)
row_count = len(data)
print(row_count/2)
para_counter = 0
prev = '\n'
with open (filename, encoding='UTF8') as f:
for line in f:
if line != '\n' and prev == '\n':
para_counter += 1
prev = line
print(para_counter)