The following waveforms show the behavior of lpm_counter megafunction for the chosen set of parameters in design counter_modulo77.vhd. The design counter_modulo77.vhd is a 8 bit up modulus 77 counter.
The counter counts till the modulus value 76.