Is it possible to restrict the character length of a post title? (Wordpress)

Could someone please tell me if there is a way to prevent users from creating a post title longer than x amount of characters?

You would have to write a plugin which hooks into the save_post action to reject a post with a title too long.

Damn, I can’t do something like that!

Plus, it would be no good just having that, it would need to come up with a message notifying the user that the title length is restricted…