Design an algorithm in Python to display the total number of odd numbers between a given range
1 and 8
def odd_count(start, end):
    count = 0
    for i in range(start, end+1):
        if i%2 != 0:
            count += 1
    return count