The INSPECT statement counts or replaces occurrences of single characters or groups of characters in a data item.