How many have fewer than ten tracks?
SELECT count ( * )  from  ( select count ( * )  FROM albums AS T1 JOIN tracks AS T2 ON T1.id  =  T2.album_id GROUP BY T1.id HAVING count ( T1.id )   <  10 ) 
fewer than ten tracks refers to HAVING COUNT(tracks) < 10;