ROW_NUMBER counts visible rows inside each partition.
row number resets per partition
Number each group
The compiler labels 5 rows.
numbered rows=5
Window-function examples are tiny finite table transforms; SQL dialects, NULL ordering, frames beyond prefix rows, optimizer behavior, performance, and product behavior are out of scope.
Read the reset
The first row of each partition starts with the first row number.
starts at one
Summary
A row number is a row label, not a collapsed summary.