Skip to main content

SequenceCount

SequenceCount[list,sub] gives a count of the number of times sub appears as a sublist of list.

SequenceCount[list,patt] gives the number of sublists in list that match the general sequence pattern patt.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.