So I am using the code:
But when it runs the code it gives the error:
Method 'count' is not declared on base 'String'.
I checked the godot engine docs and count() is a thing yet it won't work for me. I also tried
" ".count(" ")
In the _ready(): function as well and still got the same error. Any help would be appreciated