limiting number of times a document can be viewed/fileld out

Hi,
Does any plugin/method exist on wordpress 5 that will allow you to prevent a document from being viewed after a certain amount of times?Also does any method exist to prevent a document from being filled out a certain amount of times? Especially PDFS.