Report question

Question: How to write a constraint concerning a max number of rows in PostgreSQL?