Added 2 functions to read the number of lines in a flow file