Count number of rows in a CSV file
I am working with a CSV file, in one of my python program.
The CSV file is an output file from some other system, and is a huge file which takes quite a bit to load in file explorer.
I have the statistics of the output file from the other system, which includes the number of records populated to the CSV file.
What is the easiest method which can be used to get the number of the rows from the CSV file, so that it can be validated that the output file is not corrupted and can be used for further processing ?