add get_replica_counts
bug fix in get_filter_replica func in split