On the equivalence of two-way pushdown automata and counter machines over bounded languages