Replace quickcount with realcount