Fix and test excluded tags, and add items/count API