count on active_record strategy