Functional Coverage for multiple monitors

I have 40 instances of a single monitor. I wish to collect the functional coverage from each monitor. How can i write a functional Coverage code for the same?

Do i need to connect each monitors analysis port with the coverage collected implementation port 40 times? or there is a better way for this?

In reply to sonal112:

Typically an agent will include protocol-level coverage as part of the agent, and connect the coverage model to the monitor automatically. If you instantiate the agent 40 times, then you will get 40 coverage instances by default.

If the coverage is at a higher system-level, then you would have to instantiate/connect each instance. Using arrays of agents/coverage classes may help to make this easier.