Fixed up restrictByExceptionCount and added a few examples.