wc_lines = result.stdout.decode('utf8').split('\n')
total_line = wc_lines[-2] # last line is empty
return int(total_line.split()[0])
wc_lines = result.stdout.decode('utf8').split('\n')
total_line = wc_lines[-2] # last line is empty
return int(total_line.split()[0])