1. A system, comprising: a central processing unit; and a pattern-recognition processor coupled to the central processing unit, wherein the pattern-recognition processor is configured to receive a data stream comprising one or more units of data and address signals, wherein the address signals are processed by the pattern-recognition processor to provide a count indicating which of the one or more units of data is valid.