@mattly it's really interesting to see the different definitions of bag data structures. I was originally intro'd to the term via Smalltalk (and damn do I love how this is written in first person, so Smalltalk-y! https://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html ) but that seems different from yours and from https://algs4.cs.princeton.edu/13stacks/Bag.java.html (doesn't talk about the count) which seems closer to this one https://web.engr.oregonstate.edu/~sinisa/courses/OSU/CS261/CS261_Textbook/Chapter08.pdf