Test

HEADCOUNT - 1st call

HEADCOUNT - 2nd call

<--- expected is 3

HEADCOUNT - 3rd call

<--- expected is 2

HEADCOUNT - call 4

<--- expected is 5

<--- expected is 5