LongestRun on Permutation
The length of the longest run of consecutive increases.
Expressed with Fold — which compute-engine does have, contrary to what an earlier version of this package claimed when it put this statistic on the frontier.
Called as CombinatorialStat(x, "LongestRun"). The head's page has its examples.