... I found a solution
STEP 1 - Override Animated number addons
Copy
components/com_sppagebuilder/addons/animated_number/admin.php
in
templates/yourTemplate/sppagebuilder/addons/animated_number/admin.php
STEP 2 - Edit admin.php and change the field type
Around line 28 change from
'number'=>array(
'type'=>'number',
to
'number'=>array(
'type'=>'text',
STEP 3 - Install sourcerer
Install sourcerer plugin
STEP 4 - Edit Animated number addons
From the "Animated number addons" of SPPagebuider page set in the field "Counter Digit" something like (Replace PHP_open and PHP_close with corresponding php tag)
{source}PHP_open $db->setQuery("SELECT count(id) FROM yourTable WHERE yourFilter=VALUE;");echo $db->loadResult();PHP_close{/source}
That's all, value retrieved.
I hope this possibility can be included in the future releases
Max