Invert lookup table, add break_between function
Proof-of-concept count function