Added a test for count function in page spec reader