Refactored @counter to @id in model

Signed-off-by: Bebe Peng <bebepeng@gmail.com>