Make courses count in header dynamic