In my project I have about 20 differents layout witch are call by the value of a field.
layout's action is set by an expression like :

It run very well !
But I have to add a last page with the number of occurs of each printed Layouts like :

code C1 : 128
code C2 : 17
code C3 : 43

What is the best way to that ?
I can't increment a variable and run a PRINT function in the same IF statement.

Thanks in advance