title: Counting how many characters are in a string outputting syntax incorrect
body: <p>I'm trying to count how many characters are in a string using the following:</p>
  
  <pre><code>set "vnum=0.1.2"
  for %%i in (%vnum%) do set count=%%~szi
  if %count%==5(
      set "vtype=dev"
  ) else if %count%==3 (
      set "vtype=stable"
  ) else (
      set "vtype=unknown"
  )
  @echo "v%vnum%(%vtype%)"
  @echo.
  </code></pre>
  
  <p>However when I run it, it's outputting <code>The syntax of the command is incorrect.</code></p>
  
  <p>What am I doing wrong to where I cannot obtain the length of the string?</p>