On the number of factorizations of an element in an atomic monoid