fill out if statements in counter