It does not. The built-in high-speed counter function of the FX5U/FX5UC CPU module does not support DC5V input.
DC5V input can be achieved by adding BUS conversion module FX5-CNV-BUS(C) + FX5-2HC/ES.
*The FX5-2HC/ES can be added to the FX5U/FX5UC/FX5UJ CPU modules.