Count how many times the number occurs in the sequence without overlaps.
An overlap happens when two different occurrences of the pattern have common elements.
Example: ALALALONG and ALA: there is only one occurrence, because the two occurrences of ALA in ALALALONG overlap.