Sub countFill()
lRow = Range("A2").End(xlDown).Row
lCol = Range("A1").End(xlToRight).Column
For i = 2 To lRow
For j = 1 To lCol
If Cells(i, j).Interior.ColorIndex = 6 Then x = x + 1
Next
Cells(i, 5).Value = x
x = 0
Next
End Sub
Sub countFill()
lCol = Range("A1").End(xlToRight).Column
cRow = ActiveCell.Row
For j = 1 To lCol
If Cells(cRow, j).Interior.ColorIndex = 6 Then x = x + 1
Next
Cells(cRow, 5).Value = x
End Sub