We then introduce the pattern statistic defined by