Computes the length of a sequence and removes N's