def METHOD_NAME(self, alt_tag_list, title, h2_list, h3_list):
    """count_frequency method counts the frequency of keywords in different tags and uodates their respective dictionary"""
    special_characteres = "-|"
    if len(alt_tag_list) != 0:
        for data in alt_tag_list:
            l = data.split()
            for word in l:
                self.alt_dict[word] = self.alt_dict.get(word, 0) + 1
    if title:
        for word in title.split():
            if word not in special_characteres:
                self.title_dict[word] = self.title_dict.get(word, 0) + 1
    if len(h2_list) != 0:
        for line in h2_list:
            if line is not None:
                for word in line.split():
                    if word not in special_characteres:
                        self.h2_dict[word] = self.h2_dict.get(word, 0) + 1
    if len(h3_list) != 0:
        for line in h3_list:
            if line is not None:
                for word in line.split():
                    if word not in special_characteres:
                        self.h3_dict[word] = self.h3_dict.get(word, 0) + 1