def count_correct(scores):
    """Compute number of correct (rank=1) scores for a matrix of scores, where
    the score of the intended "target" is at index 1 of each row.

    N.B. Uses greater-than rather than greater-than-or-equal,
    although this is possibly a bit harsh (you could have achieved
    the correct via some arbitrary tie-breaking function).

    `scores` -- `array[N, C; float]` -- scores of all terms, where
                `scores[:, 0]` are the intended target's scores

    `return` -- `int` -- number of correct (rank=1) results
                (in the range `[0, N]`)
    """
    return int((scores[:, (0)] > scores[:, 1:].max(axis=1)).sum())
