<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def finalize(self, **kwargs):
 """ Finalize the plot with ticks, labels, and title Parameters kwargs: dict generic keyword arguments. """

        # NOTE: not deduping here, so this is total, not unique
        self.set_title(
            "PosTag plot for {}-token corpus".format(
                (sum(self.pos_tag_counts_.values()))
            )
        )

        self.ax.set_xticks(range(len(self.pos_tag_counts_)))
        self.ax.set_xticklabels(list(self.pos_tag_counts_.keys()), rotation=90)

        # Set the axis labels
        if self.frequency:
            self.ax.set_xlabel(
                "{} part-of-speech tags, sorted by frequency".format(self.tagset_names[self.tagset])
            )
        else:
            self.ax.set_xlabel(
                "{} part-of-speech tags".format(self.tagset_names[self.tagset])
            )
        self.ax.set_ylabel("Count")