Add more capable hg incoming and outgoing count handling

The original hgic and hgoc aliases worked well for the default path, but attempting to call them with a different path failed. I created functions to handle them instead.
Merge pull request #1913 from chriskrycho/patch-2

Add more capable hg incoming and outgoing count handling