Using count in place of length for jscocoa migration