test count.pd

A newer version: with upper/lower limit

limited_counter.pd