alternative solution for online counter