add refresh before calling count