add debug counters for each message type, per connection

Reviewer: @kenchiang