numberOfKnocks

try to use code tag. So that your code looks like

code here

it's easy to read.