   response.render 'home',
     "config": config
     "home": true
+
+app.get '/status', (request, response) ->
+  pruneRooms()
+  payload = {}
+  payload.userCount = 0
+  payload.activeRooms = rooms.length
+  for room in rooms
+    payload.userCount += room.top? + room.bottom?
+  response.contentType 'application/json'
+  response.write JSON.stringify payload
+  response.end()
 
 app.get '/:token', (request, response) ->
   token = request.params.token

express = require 'express'
app = module.exports = express.createServer()
io = (require 'socket.io').listen(app)
fs = require 'fs'
eco = require 'eco'


            room.bottom = null
          else
            rooms.splice i, 1
      pruneRooms()

  console.log "Listening on #{config.host}:#{config.port}"
fs.readFile __dirname + '/config.json', 'utf8', start