Changed count type to long