Detect if a container has a specific amount of items.