Fix naming inconsistentcy for composite sync wire.

Also refactor H_COUNTER and V_COUNTER declaration.