added counter support