bash_completion: small cleanup and bugfix
_hg_count_non_option wasn't taking global options into account
while counting non-option arguments.
It also used only its first argument.
abort: repository a/.hg not found!
255
requesting all changes
abort: error: Connection refused
255
abort: repository a/.hg not found!
255
abort: destination '../a' already exists
1
abort: repository a/.hg not found!
255
abort: destination 'q' already exists