Or you can try this too
=SUMPRODUCT(LEN(D3:AS3)-LEN(SUBSTITUTE(D3:AS3,"X","")))