fixed omission of caount variable in sum squared error function