Count lines instead of bytes re #9832

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Merge branch 'feature/9832_csv_check' into develop