I have been able to run the following code to gather statistics of adaption of SQL Server 2016+ functions, however these counters reset on system reboots.