The number of max edges a simple graph can have is $n\times (n-1)/2$.
So, for a graph with $3$ nodes the max number of edges is $3$.
Now there can be $0$ edges, $1$ edge, $2$ edges or $3$ edges in a $3$ node simple graph.
So the total number of unlabled simple graphs on 3 nodes will be $4$.
Similarly for two node graph we have option of $0$ or $1$ edge.
So the total number of simple graphs upto three nodes are:
$$4 + 2 + 1 = 7$$