You can use the built-in Lifetime visit count AS attribute for the visit count and page name is not cleared but if you want to track the current visit pages views then create a visit type number attribute with enrichment of increment/decrement by 1 and add a rule as pageview and within rule apply condition as ut.event =view this will increment only on pageviews.
this might look like this:
For the timestamp you can create a visit date attribute like this:
Now you have all the needed information so if you want to trigger when the lifetime visit count is greater than 5 then create an audience with the same definition
Now you have to send this audience to webhook so create a webhook with this audience and set the trigger condition as Joined Audience and do the connector configration and then do the connection action(send customized data via HTTPs advanced) mappin g with the information that you want to pass.
I hope this might be helpful to get started.
Please let me know if you are facing any issue.
Mohammed Aaqib Uddin