gives a count of the number of times sub appears in any order as sublist of list.


gives the number of sublists in list that match the general pattern patt in any order.

Details and Options


open allclose all

Basic Examples  (2)

Count the number of appearances of a sublist:

Count the number of appearances of a sublist pattern:

Options  (1)

Overlaps  (1)

Allow overlaps:

Allow no overlaps:

Properties & Relations  (1)

Count the number of subsets:

The rules for counting are defined by the length of the result of SubsetCases:

Introduced in 2020