add conditional counting for numbers in Counter