Optimize the following Python code to remove unnecessary operations or code.
def count(list_data):
    total = 0
    for i in list_data:
        total += i
    return total
def count(list_data):
    return sum(list_data)