recalculate counts of elements