Added method to return the size of a compound from its ID