Making sure the correct number of markers is displayed.