add getwalletinfo RPC call with wallet transaction count

As far as I can tell there is no easy way to get the number of transactions in a wallet.

If it is considered that "getinfo" is getting too cluttered this could probably be tacked onto the end of "listsinceblock" instead

Edit @laanwj: updated pull title