title: JAVASCRIPT: Count the number of REGEX results
body: <p>This is what regex should find <code>{</code> <code>anything in it</code> <code>}</code>, and then I want to count the number of results what the regex found. </p>
  
  <p>So I have a string like this:</p>
  
  <p><code>{example1}{example2}{example3}</code> in this case the count number is <code>3</code></p>