update relation counter when filtering