ncc: exit if number of elements exceeds its max