added pagination and listings status as inputs, count as output