include_includes()|find_commands(): use $counter instead of counter()