Total number of perfect dominating sets of graphs