Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE train ( id int, train_number int, name text, origin text, destination text, time text, interval text )
TABLE: CREATE TABLE route ( train_id int, station_id int )
TABLE: CREATE TABLE station ( id int, network_name text, services text, local_authority text )
TABLE: CREATE TABLE weekly_weather ( station_id int, day_of_week text, high_temperature int, low_temperature int, precipitation real, wind_speed_mph int )

### Question ###
Plot how many name by grouped by name as a bar graph, display by the total number from low to high.

### Accurate SQL ###

SELECT name, COUNT(name) FROM train GROUP BY name ORDER BY COUNT(name)