added a count limit of 9999.