def METHOD_NAME():
    class Root(object):
        @cherrypy.expose
        def count(self, clsname):
            cherrypy.response.headers['Content-Type'] = 'text/plain'
            return str(globals()[clsname].created)
        @cherrypy.expose
        def getall(self, clsname):
            cherrypy.response.headers['Content-Type'] = 'text/plain'
            return globals()[clsname]()
        @cherrypy.expose
        @cherrypy.config(**{'response.stream': True})
        def stream(self, clsname):
            return self.getall(clsname)
    cherrypy.tree.mount(Root())