FPGA/DSP-based Configurable Multi-Channel Counter