Added a way to query line counts from the channel.