It's a special mini-game for Snap duplicates. Each time you collect a duplicate, the bottom bar will fill up.
When you get a Snap, check out how many stars it has - that's how many will be added to the counter.