Added Counter modules. 

They are to resolve pipeline-specific things to instantiate counters. Updated counter-related test