Count both subject and object references so that #ref_count can be used to determine if to serialize a BNode ideentifier whether it's in the subject or object positions.