Add mod_counter example

This is a slightly more complicated example that appears to work.  Of
course, it's not really much of a test...