Error in Quotes::countQuotes function