This question is a continuation the one asked here, and which already received good answers. Here I am asking for a solution using rational series of formal languages as suggested by the user J. E. Pin in the other thread.
Denote by $A = \{a, b, c \}$ a ternary alphabet, also denote by $|u|_{ac}$ and $|u|_{ca}$ the number of occurrences of the factor $ac$ and $ca$ in $u$. Define $\delta : A^* \to \mathbb N$ by $\delta(u) = |u|_{ac} + |u|_{ca}$. How could the cardinality of the set of all length $n$ strings such that $\delta(u) \ge m$, i.e. $$ | \{ u \in A^n : \delta(u) \ge m \}| $$ for some fixed $n$ and $m$ determined by using the Theory of Algebraic Combinatorics on Words, i.e. using rational series of languages?