Counting and summing class added