A new approach for counting patterns in language theory, matchings, and set partitions. - Fatima Hessas; Mouloud Goubi; Noria Benkhemmou (Int. J. Math. Oper. Res., 2025)