-- Database schema
| chapters : id [ INTEGER ] primary_key , Act [ INTEGER ] , Scene [ INTEGER ] , Description [ TEXT ] , work_id [ INTEGER ] | characters : id [ INTEGER ] primary_key , CharName [ TEXT ] , Abbrev [ TEXT ] , Description [ TEXT ] | paragraphs : id [ INTEGER ] primary_key , ParagraphNum [ INTEGER ] , PlainText [ TEXT ] , character_id [ INTEGER ] , chapter_id [ INTEGER ] | works : id [ INTEGER ] primary_key , Title [ TEXT ] , LongTitle [ TEXT ] , Date [ INTEGER ] , GenreType [ TEXT ] |
-- -- Among the history works written by Shakespeare, how many works whose 1st acts have no more than 2 scenes?

SELECT COUNT(DISTINCT T2.work_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene < 2 AND T1.GenreType = 'History';