fixed counting test.  needs more work