[WFLY-1982] synchronized counter methods