I have a function which counts number of cells in a column and returns the number in a cell.
function countColoredCells(countRange,colorRef) { var activeRg