Adding getElementsCount