Among the trains that run in the east direction, how many of them have at least one car in a non-regular shape?
non-regular shape refers to shape in ('elipse', 'bucket')
SELECT SUM(CASE WHEN T1.shape IN ('bucket', 'elipse') THEN 1 ELSE 0 end)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'
database name:db_id trains
cars table cars Cols: id dtype integer, train id dtype integer, position dtype integer, shape dtype text, length dtype text, sides dtype text, roof dtype text, wheels dtype integer, load_shape dtype text, load number dtype integer, 
trains table trains Cols: id dtype integer, direction dtype text, 
