The count variable needs to be adjust to account for j to be more accurate