Refactor trial data manager so as to properly update the value of a data attribute whenever the value for the trial measurement row count is changed

Post commit code review : Chezka Arevalo