@classmethod
def count(cls, database, bibliography_eid):
    """
        Different to the usual count, it counts the number of documents in a given bibliography.
        """
    query = database.query(cls).filter(cls.bibliography_eid == bibliography_eid
        )
    return query.count()
