It counts up in 3 bit binary code to 0 to 7 decimal code(basic counting).
RED------------------------"0"
ORANGE-----------------"1"
YELLOW------------------"2"
YELLOW-GREEN------"3"
GREEN-------------------"4"
GREEN-BLUE----------"5"
BLUE---------------------"6"
VIOLET------------------"7"