added counter for A/B funtionality