nl_tokens: Count the number of quotes in a string .
pl_tokens: function quoteCount ( string ) { var <mask> = 0 ; var index = 0 ; while ( ( index = string . indexOf ( '"' , index ) ) !== - 1 ) { count ++ ; index ++ ; } return count ; }