print count of one or two same number