Write a function in Python that takes in two strings of the same length and returns the number of different characters in the two strings.
str1 = "data"
str2 = "muta"
def diff_char(str1, str2):
 count = 0
 for i in range(len(str1)):
 if str1[i] != str2[i]:
 count += 1
 return count