count common ids in two results