add function to calculate the number of marimba mallets