This method returns the number of records in a cluster identified by its logical name.
OrientDB uses clusters to determine where it stores records. Using this method you can determine the number of records in a cluster. You may find this useful in any sort of counting function to check and report the size of a cluster.
var count = db.getClusterRecordSizeByName(<name>)
<name>Defines the cluster name.