The component output in your code is the number of components.
You can use the second output of conncomp to get a vector containing the number of nodes in each of the components.
To get the number of edges, you can either use the subgraph command for a specific component and then call numedges on the resulting graph. Or you can use the groupsummary function to sum up the out-degree of all nodes that are part of each component.
>> [weak_bins1, compNumNodes] = conncomp(G,'Type','weak')
>> numedges(subgraph(G, find(weak_bins1 == 1)))
>> numedges(subgraph(G, find(weak_bins1 == 2)))
>> compNumEdges = groupsummary(outdegree(G), weak_bins1', 'sum')