How to setup Javascript to pull one piece of information from a form

I am using a Formstack form and I’m trying to setup a counter that will show how many people have used the form. Think of it like a petition, where you have a goal number, and a counter that is going up with every submission. So, I would have some lead-in text, the counter (something like “1,576 signatures”) and then the form.

Formstack has an open API and recommended one of these options for getting this to work:

https://developers.formstack.com/docs/form-id-get
https://developers.formstack.com/docs/form-id-submission-get

My issue is that I’m not familiar with Javascript and need help getting started.

I’ve been tasked with figuring this out so any help (even just pointing me in the right direction) would be greatly appreciated!

I’ve setup a test form/page here:
https://preview.webflow.com/preview/playground-45f98d?preview=ac2877f52586c8c682b76c14aec9a5ff
http://playground-45f98d.webflow.io/