Calculate the number of pipe spools

Hi Guru

As per title topic, how to auto calculate the number of pipe spools on aveva e3d or aveva marine?

example below is the total number of spools in one pipeline. what is I want to count spools of several pipelines?