"Like"Click Counter doesn't display at all

Hi there, I have implemented a like button on my dynamic members page. When user view members profile page they can click the like icon. I have read a couple of articles and videos on how to implement counts to my like button. My heart function works but my text font that is suppose to display the total like count doesn’t display at all. I know I probably messed up but I am not sure where.
My dyanmic dataset is a reference to my profileLikes dataset
profileliked =is the whole heart
likesheart= empty heart
viewCount= is within profileLikes dataset and this is where the count will be housed
profileliked= is within the profileLikes dataset and is the reference field to the Dynamic dataset
txtRecCount= the total likes display text

I feel like my wixData.query function is wrong. Can someone please assist?

import wixData from 'wix-data';
import wixUsers from 'wix-users';
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';

///Users must be logged in to Like profile page
$w.onReady(function () {
if(wixUsers.currentUser.loggedIn) {
$w("#likesheart").show();
}
else {
$w("#likesheart").hide();
}
} );
/// Add a like heart button with total number of view on current profile page
export function likesheart_click(event) {
 wixData.insert('Likes',
{likedprofile: $w('#dynamicDataset').getCurrentItem()._id}),
$w('#profileLiked').show(),
$w('#likesheart').hide();
} 
/// Get total count of likes of current profile page 
wixData.query('profileLiked').find()
.then((results) =>{
let viewCount = $w("#profileLikes").getTotalCount();
 if(viewCount === 0){
            $w("#txtRecCount").hide();
 }
 if (viewCount >= 1) {
             $w("#txtRecCount").show();
}
 wixData.update('txtRecCount',viewCount).then(()=> {
    $w('#profileLikes').refresh();
  });
});