Updated 12292022-163023
This shortcut is an exact duplicate of the (wonderful!) Music Quiz shortcut in the default Siri Shortcuts gallery, but I've added a Data Jar Set Value
action that stores each result (simply the number of times you guessed correctly) as JSON data.