Offhand, I can't think of a good way of doing it automatically. Maybe a second post-delete could be added which decrements the post count. But you could use a query like this, which decrements the post-count for user 'Foo' by 17:
UPDATE w3t_Users SET U_Totalposts = U_Totalposts - 17 WHERE U_Username = 'Foo'
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.