fixing count when solution is shown