Count the pictures! Tap a number, then tap the group with that many.
Match each number to the group with the right amount.