public int getSize() throws IOException, FileNotFoundException
   {
      int size = 0;
      br = new BufferedReader(new FileReader("output.txt"));
      String line = br.readLine();
           
      while(line != null)
      {  
         size++;
         line = br.readLine();
      }
      return size;

   }