[REFACTOR] Eliminated code doubling in advance debugging.
[ADD] Added where() and count() advanced debug methods.