Count dots on 5 black and white cards as one input (using a loop)