Counter test code added, bugs to see, timer didnot work out.. But too sleepy tonight..