pass gpu count via stdout instead of exit codes.

Exit codes can be ambiguous.