A counting device includes a set of memory cells, which are configured to store respective bits of a count code. The scheduler may select an entry from an instruction in a content search apparatus. A second switch module is coupled between a second data storage node of the first and second inverters and an inverted input signal swinging between the ground voltage and the first voltage.