Improvement to score counting