check number of items in redis list

usecase - then redis is used as logstash input/output