def length_of_last_word(s):
    """
    Returns the length of last word in the given string

    :param s: given string
    :type s: str
    :return: the length of last word
    :rtype: int
    """
    return len(s.strip().split(' ')[-1])