def is_password_valid_with_old_rules(dataset):
    """ Validate password according to the old rules """
    letter_count = dataset['password'].count(dataset['letter'])
    return int(dataset['first']) <= letter_count and letter_count <= int(dataset['last'])