Added code to count score