Similar Items: The complexity of global cardinality constraints