Assuming you will be hiding the rows for irrelevant questions,
This regular formula returns the count of visible non-blank cells minus the count of visible cells containing "x"
=SUBTOTAL(103,A1:A20)-SUMPRODUCT(SUBTOTAL(103,OFFSET(A1,ROW(1:20)-1,))*(A1:A20="x"))
Is that something you can work with?