Update blue_velvet.py

Solved idCounter issue using global variable and renaming function parameter.