Add code for the converted counter component