How many four-digit integers have three of its digits the same and different from the fourth (like 1113)?
Count the number of red squares in the image to find the answer. If you zoom in, a valid four-digit integer is printed inside each red square.
Nodebox network (zipped) attached.