At the place of $count I want to have value of "curveNo". Could any one please help me with how that can be acheived