Larry used a pattern of colors to make a cube train. He used a red cube, a blue cube, a red cube, and another red cube before he started the pattern again. How many red cube did Larry use?