added smiley face counting, with unit tests