Change links of each resource to call resource#open first to increment count before opening the page