Test with counter