Counter with limits

elementary, my dear Watson

        if (octavas > 6)
        {
          octavas = 6;
        }