Add an example for counted flags.

Close #56.