if statement and count++ in one line.