counter for nights
Used with numbers in the ichi, ni, san counting system (e.g., 一夜, 二夜). Not used with the hitotsu, futatsu system.
I stayed two nights at the inn.
He stayed up all night for three nights in a row.
泊 is the counter for overnight stays (e.g., 一泊二日), while 夜 counts nights themselves.
晩 is a counter for nights or evenings, often used in the hitotsu, futatsu system (一晩, 二晩), whereas 夜 uses the ichi, ni system.
Standard kanji form for the counter meaning 'nights'.
The kanji 夜 means 'night' and is used here as a counter with the reading や, which is a standard Sino-Japanese reading.