X-ray diffraction from a growing film at an anti-Bragg point should exhibit bilayer oscillations caused by interference. In an experiment of TiN film growth by laser ablation onto sapphire, an unexpected beating envelope function is found to modulate the oscillations. The successive nodes and antinodes are identified with the development of new growth domains separated by one atomic layer in thickness. This effect allows atomic layer counting of the film thickness distribution. The results imply that the growth is not characterized by a continuum stochastic process, as usually assumed.