title: number of parameters is always returning 0 in bash
body: <pre><code>echo number of params is... "$#"
  #checks to see if the correct amount of params are passed in
  if [ "$#" -ne 1 ];then
      echo "ERROR: please pass in a ip address"
      exit 1
  fi
  </code></pre>
  
  <p>I enter the command "./RJ_APM.sh 1 2 3" and the output is...</p>
  
  <pre><code>[User ~/Desktop/Task_Automation/mini_Proj_1]$ ./RJ_APM.sh 1 2 3 
  number of params is... 0
  ERROR: please pass in a ip address
  </code></pre>