def get_number_of_reviews(recid):
    """
    Returns number of reviews for given record.

    @param recid:

    @return: Number of reviews
    """
    from invenio.webcommentadminlib import get_nb_reviews
    if recid:
        return get_nb_reviews(recid)
 def cached():
     return get_nb_reviews(self.recid, count_deleted)