Let be any numbers in and let be any word. We say that is an -parity-rise if , , and . We denote the number of occurrences of -parity-rises in by . Also, we denote the total sizes of the -parity-rises in by , that is, A composition of a positive integer is an ordered collection of one or more positive integers whose sum is . The number of summands, namely , is called the number of parts of . In this paper, by using tools of linear algebra, we found the generating function that counts the number of all compositions of with parts according to the statistics and , for all .