Dynamics 365 Marketing pricing is based only on the number of contacts intended to be used for marketing activity and not the total number of contacts in database. Marketing activities include any contact or engagement via emails, landing pages, forms, LinkedIn integration, events, surveys, and any other custom channel.