Step by step, each one tested with the current preview.
A counter and its testbench: analyze, run, look at the waveforms.
Get UVVM, run its eight demo testbenches, and read what they print.