displaying number of rows is using print now instead of writer.writerow