Added missing NUM_ELEM function