in reply to Re^2: number of numbers in a string
in thread number of numbers in a string

how about this (works on STDIN):
#!/usr/bin/perl -ln $n+=(1<<length)-1for/(\d+)/g; END{print $n}
ignore that, I'm off to think.