Subscription based on number of posts

I've created a custom post type. I'd like to limit subscriptions to a number of posts. For example, a single subscription would expire after 2 posts have been published in this custom post type. Is this possible versus only having subscriptions expire after a time period?