Hello,
Please note that we recommend to make changes in a child theme to prevent of losing modifications after theme update. Otherwise you need to save changed file and reupload it after update.
Change this code http://prntscr.com/gqnvwd to
$i = 0;
while ( $loop->have_posts() ) : $loop->the_post(); $i++; endwhile;
echo $i . ')';
in framework/portfolio.php file.
Regards