Add counting macro for ABCD method