def extractValue(indexString, content):
    """
    Extracts an integer value after the indexString from the given content.

    Searched for the given string, then moves over that string + 1 pos (new line),
    then reads the numbers until a '<' is found

    indexString - The string to search for.
    content     - The content to search in.

    Returns:
    Integer if found, else -1
    """

    index = content.find(indexString)

    if (index == -1):
        raise ValueError('String not found!', indexString)

    index += len(indexString) + 1

    numberStr = '';
    number = 0

    while (content[index] != '<'):
        if (content[index] != ','):
            numberStr += content[index]

        index = index + 1

    number = int(numberStr)
    return number