invalid set index text on base: null instance with value of type 'string'.

Hi! I want to make a clicker on version 3.5 and in writing the code. I get this error: “invalid set index text on base: null instance with value of type ‘string’.” Here is the code:
extends TouchScreenButton

var file= File.new()
var content = load_data()
var count = content

func save_data():
file.open(“users://Count.txt”,file.WRITE)
file.store_line(str(count))
file.close()

func load_data():
file.open(“users://Count.txt”,file.READ)
content = file.get_line().to_int()
file.close()
return content

func _on_TouchScreenButton_pressed():
count += 1
save_data()
load_data()
$Count.text = str(content)
The error in this line:
$Count.text = str(content)
Thank you!

Seems like your $Count label doesn’t exist. Make sure “Count” is a child of this script.