keep count of the elements in a sublevel