Edited since the problem has changed slightly.
Note that it is not necessarily the case that $ABABC$ will have different trace from $AABBC$; it's just that they are not guaranteed to have the same trace.
So, you want to count the number of distinct words, modulo an equivalence relation that identifies two words if they are cyclical permutations of each other.
The number of distinct words with two $A$'s, two $B$s, and one $C$ is $\frac{5!}{2!2!1!} = 30$ (the number of ways of ordering $5$ elements; divided by $2!$ to account for the three $A$s, and by $2!$ for the two $B$s).
Each word has five cyclic permutations; can two of them be equal? No: since there is only one $C$, the position of $C$ changes after every cyclical permutation. So each word has five distinct cyclic permutations. That means that the equivalence classes of the 30 words under cyclical permutation have five elements each, and therefore there are exactly 6 equivalence classes.
So there are at most 6 possible distinct values for the trace of a product of all five matrices. However, they need not be all distinct (that will depend on the matrices). But the upper bound for the number of distinct traces is six.
It is not clear to me, however, that given two words that are not cyclic permutations of each other, we will be able to find matrices $A$, $B$, and $C$ such that the trace of the corresponding products are different, or even if we can find matrices that will produce six distinct traces this way.
Here, the fact that there is only one $C$ makes things simpler. More generally, you would need to consider whether there are any "repeats" among the cyclic permutations. E.g., if the problem had two of each, so that the number of distinct words would be $\frac{6!}{2!2!2!} = 90$, then some classes would have fewer than six distinct products: the class of $ABCABC$ only has three distinct cyclic permutations.
If some of the matrices commute, then you would need to consider a weaker equivalence relation between products; e.g., if $C$ commutes with $A$, then the words $ABCAB$ and $ABACB$ are "equivalent", which would coalesce the two equivalence classes you already have. You'd want to use something like the Orbit Counting Lemma mentioned by Douglas.