'Gets Number of pages for given form UUID
@param formuuid: uuid of the form, for which
number of pages is required
@return: number of pages in a form identified
by uuid'

def __getNumPages(self, formuuid):

    db = current.db
    table = db.ocr_meta
    row = db((table.form_uuid == formuuid)).select(table.pages, limitby=(0, 1)).first()
    return int(row.pages)
