added list count functionality