On the minimum rainbow subgraph number of a graph