If you want to have an option at the backend to show or hide this count just follow this:
file mod_k2_tools/tmpl/authors.php
Find:
latest->numOfComments;?>
Replace with:
get('authorCommentsCount')):?>
latest->numOfComments;?>
************
File mod_k2_tools/mod_k2_tools.xml
Add this code after line 56 (before :
********
file mod_k2_tools/helper.php
Find:
$query = "SELECT COUNT(*) FROM #__k2_comments WHERE published=1 AND itemID={$author->latest->id}";
$db->setQuery($query);
$author->latest->numOfComments = $db->loadResult();
Replace with:
if ($params->get('authorCommentsCount')) {
$query = "SELECT COUNT(*) FROM #__k2_comments WHERE published=1 AND itemID={$author->latest->id}";
$db->setQuery($query);
$author->latest->numOfComments = $db->loadResult();
}
If you have your site translated to other language you should add the text to translate.
Hope this help you
Rgds