count samples that share variants