Count number of tamed animals nearby

trying to see if there is at least 1 tamed animal within 25 blocks. this is what I have so far: execute as @a at @s store result score @s cevent.wolfclose as @e[distance=..25] if data entity @s Owner for some reason that counts it as 1, but only when you are at the edge of 25 blocks, but not exactly. its very strange.

Continue to help post