Check $# at beginning of execution

I've observed an issue with the pre-existence of the $SBT_OPTS variable. When running this script with no arguments in an sbt project and SBT_OPTS set to anything, argumentCount is the length of SBT_OPTS. This doesn't appear to be what's required.