The terms can vary deal by deal, but generally, company valuation is determined by the outstanding share count (OS), so that would also be used when determining buyout price(s). All deals are unique, however.