Help Please!

Hi Shlomi,
I got this code from an old forum post:

import wixData from “wix-data”;

$w.onReady(function () {
// tell the repeater you want to update each item when it’s ready
$w(“#repeater1”).onItemReady(function($w, itemData, index) {
// get the userId of the item (i.e. the followee)
const followeeId = itemData._owner;

    // find all the records where followee === followeeId 
    wixData 
        .query("Following") 
        .eq("followee", followeeId) 
        .find() 
        .then(function (results) { 
            // assign the number of results to your "counter" text elemnt 
            $w("#text91").text = results.totalCount; //  
                results.length 
        }); 
 }); 

});

Could this be used for the counter on the repeating layout? If so, what should I do?