When you execute a PHP script from command line, you can access the variable count from $argc and the actual values in the array $argv. A simple example.
Consider test.php
Executing this using php test.php a b c:
4 arguments given:
Array
(
[0] => test.php
[1] => a
[2] => b
[3] => c
)