In this code, we will take a simple text file and find how many lines it contains.
This is shown in the code below: