             var countStringAttributes: [String: Any] = [:]
             countStringAttributes[NSFontAttributeName] = countFont
             if let textColor = titleLabel.textColor {
-                countStringAttributes[NSForegroundColorAttributeName] = textColor
+                countStringAttributes[NSForegroundColorAttributeName] = textColor.withAlphaComponent(titleLabel.alpha)
             } else {
                 countStringAttributes[NSForegroundColorAttributeName] = UIColor.clear
             }

            let inset = (badgeSize.width + margin) / 2
            titleEdgeInsets = UIEdgeInsetsMake(0, -inset, 0, inset)
            
            let countPoint = CGPoint(x: titleLabel.frame.maxX + margin + countEdgeInsets.left - inset,
                                     y: titleLabel.frame.midY - (countString.size().height / 2))
            
            countString.draw(at: countPoint)

            
            let badgePath = UIBezierPath(rect: badgeRect)
            badgePath.lineWidth = lineWidth
            titleLabel.textColor.withAlphaComponent(titleLabel.alpha).set()
            badgePath.stroke()
        }
    }
