numberOfPWLsPerVerticalLevel function

Count number of PWLs per vertical level