"Random Dice Throws"

Given an input file of 3000 random dice throws, (here: dice.txt) calculate how many doubles were rolled.

It is known for this problem that each die are fair in that they are labeled with the numbers 1,2,3,4,5 and 6. It is also known that a double is defined as both dice showing the same number after they are rolled.

For this challenge you can simply modify your code from challenge 11, instead of checking both numbers are negative, check that they are both the same... also with this one you will need to add some sort of error checking/correction.