counter works for results view