index error in scorecount