The result is indeed a list of strongly connected components, so to get their number, you just have to do, if G is a digraph:
sage: len(G.strongly_connected_components())