 
 
   ###*
+   * Set state to increment connection count.
+  ###
+  incrementConnectionCount: ->
+
+    @setState { connectionCount: @state.connectionCount + 1 }
+
+
+  ###*
+   * Set state to decrement connection count.
+  ###
+  decrementConnectionCount: ->
+
+    @setState { connectionCount: @state.connectionCount - 1 }
+
+
+  ###*
    * Check to see if participant with given nickname, and calls the callback
    * with result.
    *



  ###*
   * Transforms given publisher instance from OpenTok into our own
   * `ParticipantType.Publisher` class instance and it registers it into model's
   * participant property.. It sets the model's stream instance to publisher's



  ###*
   * @param {OT.Connection} connection
   * @return {boolean}
  ###
  isMyConnection: (connection) ->

    { nickname } = JSON.parse connection.data

    return nickname is getNick()


  ###*
   * Public access method for all participants. Just because internally the
   * subscribers are cached with `connectionId` instead of `nickname`s of
   * subscribers/publisher, we are first transforming the subscribers and merge
