added denomination counting