Changed the counter to a long.