How to calculate quantity of routes ?

Hello there !
Please help & tell me how I can to calculate quantity of routes ?

I need script which counts the number of routes.
I try to do so:
if ([ip route find where dst-address =0.0.0.0/0]>1) do={beep}
but it doesn’t work.

This string: ip route print where dst-address =0.0.0.0/0 works fine - I get list of routes corresponding to the condition,
but how I can to count it ?

This is how to print number of routes:

:put [:len [/ip route find where dst-address="0.0.0.0/0"]]

to get it inn to a variable

:local Routes  [:len [/ip route find where dst-address="0.0.0.0/0"]]

Or

:global count [/ip route print count-only where dst-address="0.0.0.0/0"]