Your solution will fix page accounting only for the foo2zjs drivers while many other drivers will stay without.
foomatic-rip, a filter used for integrating arbitrary printer drivers with CUPS (and other printing systems) has support for page accounting, but Debian maintainers turned it off by default due to problems with some drivers.
To activate it, enter
sudo dpkg-reconfigure foomatic-filters
and answer the third question with "Yes".
Try to print now with an unpatched foo2zjs driver. You should get the page accounting. If you do not get it, or if extra blank pages come out, please tell here.
Your solution will fix page accounting only for the foo2zjs drivers while many other drivers will stay without.
foomatic-rip, a filter used for integrating arbitrary printer drivers with CUPS (and other printing systems) has support for page accounting, but Debian maintainers turned it off by default due to problems with some drivers.
To activate it, enter
sudo dpkg-reconfigure foomatic-filters
and answer the third question with "Yes".
Try to print now with an unpatched foo2zjs driver. You should get the page accounting. If you do not get it, or if extra blank pages come out, please tell here.