hmm, fixed the error line so that if no " are in the string it returns an error message correctly
Code:
alias testcount {
  var %string = $input(put some quote delimited text in here,e)
  var %quantity = $count(%string,$chr(34))
  if (%quantity == 0) { echo -a Error: $chr(34) Not found in text | return }
  if (2 \\ %quantity) { echo -a odd } 
  if (2 // %quantity) { echo -a even }
}