Added countScore method