A method for collecting data for a geographic database is disclosed. A plurality of vehicles moving on roads in a geographic region collects data indicating position of the vehicle. For a location on a selected road, the method obtains a cross sectional distribution of the position data. The method identifies a number of steps in the distribution indicating a number of lanes on the selected road and updates the geographic database with data indicating the number of lanes.