Logic gates and counters (Advanced Video Pub., 2006)