On the number of contacts of two polymer chains situated on fractal structures