I almost have it working, the only problem is that in the first “row” there are three posts and not two. I can´t really figure out why, but I guess the problem is in how i count the number of posts?
I use a slightly different method I found somewhere.
$count = 0;
// start the loop
while(have_posts()) : the_post();
// Create open wrapper if count is divisible by 2 (change '2' as needed)
$open = !($count%2) ? '<div class="row">' : '';
// Close the previous wrapper if count is divisible by 2 and greater than 0
$close = !($count%2) && $count ? '</div>' : '';
// Get it started.
echo $close.$open;
<div class="col-sm-6-noGutter">
// .... do loop stuff here .... //
</div>
$count++
endwhile;