add a getNumberOfTuples method to pli builder
added corresponding testcase and updated fixture