In includes/functions.php file,
find:
$keywords = "";
add after:
$keywords_count = 0;
find:
foreach ($split_keywords as $key => $val) {
add after:
$keywords_count++;
find:
"image_keywords" => $keywords,
add after:
"image_keywords_count" => (isset($keywords_count) && $keywords_count > 0) ? (int)$keywords_count : "",
In templates/your_template/details.html file - use:
{if image_keywords_count}({image_keywords_count}){endif image_keywords_count}
before keywords text.