### Eclipse Workspace Patch 1.0
#P 19stable
Index: mod/forum/lib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/mod/forum/lib.php,v
retrieving revision 1.609.2.92
diff -u -r1.609.2.92 lib.php
--- mod/forum/lib.php	6 Apr 2009 09:49:41 -0000	1.609.2.92
+++ mod/forum/lib.php	12 Apr 2009 17:42:13 -0000
@@ -2885,6 +2885,12 @@
                 $post->userid.'&amp;course='.$course->id.'">'.$fullname.'</a>';
     $by->date = userdate($post->modified);
     print_string('bynameondate', 'forum', $by);
+    
+    $options = new object();
+    $options->para      = false;
+    $options->trusttext = true;
+    
+    echo ' ('.get_string('numwords', '', count_words(format_text($post->message, $post->format, $options, $course->id))).')';
     echo '</div></td></tr>';
 
     echo '<tr><td class="left side">';
@@ -2918,9 +2924,6 @@
     }
 
 
-    $options = new object();
-    $options->para      = false;
-    $options->trusttext = true;
     if ($link and (strlen(strip_tags($post->message)) > $CFG->forum_longpost)) {
         // Print shortened version
         echo format_text(forum_shorten_post($post->message), $post->format, $options, $course->id);
