'Returns the number of compute nodes in the cell database.'

def _count_compute_nodes(self, context=None):

    meta = MetaData(bind=db_session.get_engine(context=context))
    compute_nodes = Table('compute_nodes', meta, autoload=True)
    return select([sqlfunc.count()]).select_from(compute_nodes).scalar()
