title: How to count and check passed arguments?
body: <p>How can I translate the following Ruby code to Bash?</p>
  
  <pre><code>if ARGV.length == 0
      abort "\nError: The project name is required. Aborting...\n\n"
  elsif ARGV.length &gt; 2
      abort "\nError: The program takes two arguments maximum. Aborting...\n\n"
  end
  </code></pre>