use global for rainbow counter