It almost works. In column D, I need to check the whole column as there could be up to 3000 rows. So I changed the formula to this:
=SUMPRODUCT(--(NOT(ISNUMBER(MATCH(D2:D3000,A2:A3000,0)))))
Which in F1 the result is 2979. So it counted all the rows with text not highlighted. I some how need to count the highlighted only resulting in a value of 7.