You could probably do this with @ehsankia’s quote API https://community.nightdev.com/t/customapi-quote-system/7871 if you reset it after each match.
Just have the users type !radiant or !dire at the start and enter that into the quote list with there name before it using $(user)%20dire/radiant at the end of the add quote link.
You will have to count it manually most likely and enter it into a table yourself but this should work tell me if you need me to elaborate more on this.