Implemented points counting