new function to calculate total likes - wip