add support to count downloads