gridmap and save

godot 4.2.2

i want know how many block are place with a gridmap node and save “how many block are place” in a file for a game, for save and load the map