Counting and weighing