count and compare