Returns the number of consecutive elements that have the same declaration
as the current element. If
occurrence is followed by an element qualifier, the specified element is
tested instead of the current one.
Inclusions are counted as well as proper elements.
The following element events will always have an occurrence of 1: