get N from array sizes