When placing pattern cells it may show such warning that there are too many patterns to be placed "Do you really want to place [million] patterns?".
What I am looking for is to get pattern count after placement how many patterns were actually placed.