network.size(x) is equivalent to get.network.attribute(x,"n");
the function exists as a convenience.
References
Butts, C. T. (2008). “network: a Package for Managing
Relational Data in R.” Journal of Statistical Software, 24(2).
https://www.jstatsoft.org/v24/i02/