Minecraft wiki entry for Redstone_Comparator, associated text: Most commands can succeed once per execution, but certain commands (such as those that accept players as arguments) can succeed multiple times, and the comparator outputs the number of times it succeeded (maximum 15 when sent to redstone dust, but in the code is able to go up to 32-bit integer limit, and can be used in contraptions with no redstone dust with those values).