add a count attribute to keep track of how many times we encountered a mapping
introduce some model classes to keep things legit
add a keySet method to our resource to make it traversable. This keySet has not the usual semantics: it's a pure view
going on with the mapper