Solid‐State Pulse‐Height Encoding System with Pileup Reduction for Counting at High Input Rates