An ODS file that you can work with free softwares LibreOffice and OpenOffice, or any spreadsheet that works with this format including MS Office.
Enter the numbers in the yellow cells. The counting is automatic.
Obviously, you can save the count and make another maths.