Try

=SUM(IF(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9},"")),1))

confirmed with CTRL+SHIFT+ENTER not just ENTER...

change A1 to actual cell reference first.