<p>This is to fulfill the following feature request:</p>

<p><a href="https://trac.openstreetmap.org/ticket/4511">https://trac.openstreetmap.org/ticket/4511</a></p>

<p>After I made the patch I thought that maybe we should add a counter for diary entry comments and messages as well just so everything is counted?</p>

<hr>

<h4>You can merge this Pull Request by running:</h4>
<pre>  git pull https://github.com/ppawel/openstreetmap-website trac-4511-diary-entries-count</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/117'>https://github.com/openstreetmap/openstreetmap-website/pull/117</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Added counter cache for user diary entries and displaying it in the u…</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li><strong>M</strong> app/models/diary_entry.rb (4)</li>
  <li><strong>M</strong> app/views/user/view.html.erb (3)</li>
  <li><strong>A</strong> db/migrate/20121005195010_add_diary_entry_counter_caches.rb (13)</li>
</ul>

<h4>Patch Links</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/117.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/117.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/117.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/117.diff</a></li>
</ul>


            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/117'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_nm7qe0iLAy8Qva8pHESxgY.gif' height='1' width='1'>