Generate an optimized code in Python to search an array and find the most frequent number.
array = [3, 4, 6, 3, 2, 8, 6, 7, 3]
from collections import Counter

def find_most_frequent(array):
  c = Counter(array)
  return c.most_common(1)[0][0]

array = [3, 4, 6, 3, 2, 8, 6, 7, 3]

print(find_most_frequent(array)) # 3