user
Taken from this video at the time stamp of 9:02

**Task:**

Get a string input and store it into a variable or something and compare the number of occurrences of the letters "a", "b" and "c".
All other characters MUST be ignored. If the "a"'s, "b"'s and "c"'s occur with exactly equal frequency, return true; otherwise return false.
assistant
I've elected to do 'or something' as specified in the task instructions. Rather than just feeding a few words in to check if there are equal counts of 'a', 'b', and 'c'; instead, reads in the words\_alpha.txt word list and returns the words that have equal counts of 'a', 'b', and 'c', and, (to make things a little less verbose,) **have more than one of each**.

```
.say for 'words_alpha.txt'.IO.lines.race.grep({+(my \b = .comb.Bag)<a> > 1 and [==] b<a b c>}) X~ " True";

```

Output:

```
abboccato True
bambocciade True
beccabunga True
blackback True
bombacaceous True
brachiocubital True
buccolabial True
cabbalistic True
subbrachycephaly True
subcarbonaceous True

```