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