I want to count the complete numeric values from a single cell, I am using below formula but it not work perfectly as I want

for example in Cell A1 I enter data as under

1 ali, 2 asad , shan, 10 aslam

in the above data 1,2,10 is used as the serial numbers

=COUNT(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9,0},)))

by using above formula for above data the result should 3 but the result is different

If anybody knows the correct formula please guide me