Cannot run getElementsCount in 8.1.0

Same as this: