fixed setQuoteCount method