Nightmares

When do nightmares typically begin for little ones? My daughter is two years old & she had one recently.