Terraform telemetry at the provider level ( like number of resources currently being used )

I have a provider x, and i define 3 resources in my .tf file. For telemetry purpose i want to know how many resources are being used in my .tf file at the provider level code ( i.e., provider.go ).

Is there any available option to get the resource telemetry data in terraform ?

I do can get the resource names whenever code touches the resource level code, but i am interested at the provider level to get the current resource usage without going to the resource level code.