Quick Early Counting with Template Groups