Add Python Count Frequency and Filter Sequence