Get the number of names in a namespace

def get_num_names_in_namespace( self, namespace_id ):
        """
        Get the number of names in a namespace
        """
        cur = self.db.cursor()
        return namedb_get_num_names_in_namespace( cur, namespace_id, self.lastblock )