title: How to use length function to count rows and columns in R
body: <p>I have some data in R, I need to use length function to count how many rows and columns in this data, the requirement ask for one line code.</p>
  <pre><code>data(airquality)
  ?airquality
  air = airquality
  head(air)
  </code></pre>