Pretty posts

WordPress Tricks
In WordPress, wp_trim_words() function that will help you to limit the word count in your post title. Just use following code where ever you want to display your title with limited word count.
<?php echo wp_trim_words( get_the_title(), 10, '...' ); ?>
Replace 10 value from above code with whatever number of words you want to display.

Support: WordPress 3.3+