I’d guess Spark.variable()
will be the thing to look into for you.
Also have a read here
Tutorial: Spark Variable and Function on One Web Page
Reading Spark Variables with Your Own HTML File
Otherwise, your Arduino code would just work the same (but don’t put the blank between myCount
and the post increment ++
).