def get(self): users = yield gen.maybe_future(User.count()) topics = yield gen.maybe_future(Topic.count()) posts = yield gen.maybe_future(Post.count()) comments = yield gen.maybe_future(Comment.count()) raise gen.Return({ 'users_count': users, 'topics_count': topics, 'posts_count': posts, 'comments_count': comments, })