Show different locations of railways along with the corresponding number of railways at each location.
return railways  ;return locations of  #1 ;return number of  #1  for each  #2
['select', 'project', 'group']