title: Count the number of integer digits
body: <p>I want to count the number of digits before the decimal point for a numeric vector x with numbers greater or equal to 1. For example, if the vector is  </p>
  
  <pre><code>x &lt;- c(2.85, 356.01, 66.1, 210.0, 1445.11, 13.000)
  </code></pre>
  
  <p>my code should return a vector containing integers 1, 3, 2, 3, 4, 2</p>
  
  <p>Does any know how to do this? </p>