A discrete variable is a variable whose value can be obtained by counting since it contains a possible number of values that we can count. In contrast, a continuous variable is a variable whose value is obtained by measuring.