This calculates (in a million spins) whether any in line comes equal and notes it down. e.g. 114 is rolled: 2 in line adds a tally
Please tell me if you do not understand.