title: Check that there are at least two arguments given in a bash script
body: <p>I am trying to write a script that mimics <code>cp</code> where there is a source and destination input. How can I count the number of arguments given on the command line?</p>
  <p>For example:</p>
  <pre class="lang-none prettyprint-override"><code>./myscript src dest
  </code></pre>
  <p>How can I check that at least 2 things were given?</p>