Created basic count query, that could still be optimised, but at least now the variants screen is no longer depended on the eager fetching of installations