The IS MISSING keywords return the rows that have any type of missing value: .n, .x, or a period. The PUT function returns a character string to be counted.
   count(case
            when &col is missing  then put(&col, 2.)
            end) "Missing or NOT VALID Responses for &col",