title: How could I know amount of connections to channel in phoenix?
body: <p>I have a pretty simple chat application, and I want to implement some specific actions when user exits from the page (that is, <code>terminate/2</code> connection). But I want to implement this action if there is nobody else connected to this topic.</p>
  
  <p>How could I do that?</p>