Do we need to save a reference to Object.keys(finalMatchings).length, really? Thanks