counts method to beacon