add simple complexity measurement