Add client property for pending request count

The client.countPending getter can be used to query the number of
requests which are currently pending.