old_contents: # -*- coding: utf-8 -*-
  
  
  if __name__ == "__main__":
  	print "Geonames"
  	with open("../data/cities15000.txt") as geonamesFile:
  		for line in geonamesFile:
  			print line
  
new_contents: # -*- coding: utf-8 -*-
  
  
  if __name__ == "__main__":
  	print "Geonames"
  	with open("../../data/cities15000.txt") as geonamesFile:
  		lineNumber = 0
  		for line in geonamesFile:
  			lineNumber +=1
  
  		print "%d lines read" % lineNumber
  
subject: Read the file and count the lines using Python