add train count

DRY out api key.