1. A device, comprising: a finite state machine (FSM) lattice comprising: a plurality of blocks, each of the blocks comprising a plurality of rows, each of the rows comprising a plurality of programmable elements, wherein a particular one of the programmable elements is configured to output a signal based on a detection of a condition; and at least one of the rows of a particular one of the blocks further comprising a counter configured to be selectively coupleable to any of the plurality of programmable elements in any of the plurality of rows of the particular one of the blocks, wherein the counter is configured to transmit an output in response to counting that the condition was detected a certain number of times.