Quarantined items Count

Hi All,

There’s a way to get the quarantined item count?
There a legacy function call getQuarantinedRowCount.