Implemented basic command counter