Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The description is not clear.
I guess that at each input pulse the operating mode of the counter toggles between up and down.
So you need (guess what) a toggle flip-flop whose output is the OPERATING_MODE signal - used to control the counter operations.