title: How many unique strings is possible with set amount of characters and length?
body: <p>If I have two characters (<code>a, b</code>) and a length of three (<code>aaa, aab ...</code>), how do I count how many unique strings I can make of that (and what is the math method called)?</p>
  
  <p>Is this correct?</p>
  
  <pre><code>val = 1, amountCharacters = 2, length = 3;
  for (i = 1; i &lt;= length; ++i) { val = amountCharacters*val; uniqueStrings = val }
  </code></pre>
  
  <p>This example returns 8 which is correct. If I try with something higher, like <code>amountCharacters = 10</code> it returns 1000. Is it still correct?</p>