Write a Python program to identify the number of times a given number appears in a list.
list = [12, 46, 8, 12, 8, 8]
number = 8
counter = 0
for num in list:
    if num == number:
        counter += 1
print("The given number appears", counter, "times in the list.")