Asterisk Channel Usage Count

I would like to know if there is a command that can be run in the extensions.conf file where I can check the number of active connection by a base channel within Asterisk.

Like how many connections are currnetly used for channel: SIP/PHONE1

Is there an addon that will return that.

I want to track how many uses call a certain IP Phone and VIOP Proxy.

If there are too many connected, send them to another phone.