title: get number of columns of a particular row in given excel using Java
body: <p>I want the number of columns of a particular row in excel. How is that possible? I used POI API </p>
  
  <p>but I could get only columns count to 7 .</p>
  
  <pre><code>    try
              {
                  fileInputStream = new FileInputStream(file);
                  workbook = new HSSFWorkbook(fileInputStream);
                  Sheet sheet = workbook.getSheet("0");
  
  
                  int numberOfCells = 0;
                  Iterator rowIterator = sheet.rowIterator();
                  /**
                   * Escape the header row *
                   */
                  if (rowIterator.hasNext())
                  {
                      Row headerRow = (Row) rowIterator.next();
                      //get the number of cells in the header row
                      numberOfCells = headerRow.getPhysicalNumberOfCells();
                  }
                  System.out.println("number of cells "+numberOfCells);
  
  }
  </code></pre>
  
  <p>I want the number of columns at a particular row number say 10 .
  The excel columns are not same</p>