Argument counts for actions

Clean-up related to argument count.

  * Return 0 when the actual count can’t be determined. (In hindsight, we should have been passing the action and not its identifier here. Too late now.)
  * Only show “Run” if the action in the first pane doesn’t expect any arguments.