useCounter Function | FrontendArk