Does this return the expected results? I've highlighted cells for illustration of the first result. "Shanghai" occurs 2 times in columns C to H where "Shanghai" is in the same row in column A.
=SUM(N(IF($A$1:$A$30=K1,$C$1:$H$30=K1)))