Added happyg() and count8() methods