# Exercise: How Many Arguments?
#
# Seq exposes command-line arguments through two words:
#
#   args.count   ( -- Int )       total number of arguments
#   args.at      ( Int -- String ) the argument at the given index
#
# Note that `args.count` includes the program path itself as
# `args[0]`. So for `myprog foo bar`, count is 3 and `0 args.at`
# is "myprog" (or its full path).
#
# Your task: Write `user-arg-count` — the number of *user-supplied*
# arguments, i.e. `args.count` minus one for the program path.
#
# The test below only verifies your word runs without crashing —
# real arg-count behavior needs real args, which `seqc test` doesn't
# provide. To actually try it, drop your code into a tiny shebang
# script:
#
#   #!/usr/bin/env seqc
#   : user-arg-count ( -- Int )
#       args.count 1 i.-
#   ;
#   : main ( -- Int )
#       user-arg-count int->string io.write-line
#       0
#   ;
#
#   $ chmod +x try-count.seq
#   $ ./try-count.seq                         → 0
#   $ ./try-count.seq one                     → 1
#   $ ./try-count.seq one two three           → 3
#
# When done, delete the marker line below.

# I AM NOT DONE

: user-arg-count ( -- Int )
    # Your code here
    0
;

: test-runs ( -- )
    user-arg-count drop
    # Do not edit below this line
    true test.assert
;
