ENgetcount function

Get number of network elements.