#541 - Fixed "count_relations" filter.