@staticmethod
def counts_conditions(counts):
    """
        Evaluates conditions about counts of elements
        :param counts: dict of tags counts
        :return: flag if conditions are True or False
        """
    return counts['p'] and counts['img'] > counts['p'] or counts['input'
        ] > counts['p'] / 3
