counter game hackerrank python