title: datatables number of columns
body: <p>How do i get the number of columns in a datatable?</p>
  
  <p>I can get the number of rows by doing oTable.fnGetData().length but how do I get the number of columns so I can Iterate over each cell like this:</p>
  
  <pre><code>var numColumns = //How to get the number of columns?
      for(var r=0;r&lt;oTable.fnGetData().length;r++){
          for(var c=0;c &lt;= numColumns;c++){
              console.log("[R]: "+r+ "[C]: "+c+ " data: "+oTable.fnGetData(r,c));   
          }
      }
  </code></pre>