All streets have at least two nodes, one in each end.
Extra nodes are added if another street are adjoined or curves are added.
So in theory you could have a 10 mile long road with only two nodes.
For the city, it need to have a boundary.
https://community.citystrides.com/t/adding-a-city-to-openstreetmap/21433/3