<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def printFrequencyStatistics(counts, frequencies, numWords, size):
 """ Print interesting statistics regarding the counts and frequency matrices """

  avgBits = float(counts.sum())/numWords
  print "Retina width=128, height=128"
  print "Total number of words processed=",numWords
  print "Average number of bits per word=",avgBits,
  print "avg sparsity=",avgBits/size
  print "counts matrix sum=",counts.sum(),
  print "max=",counts.max(), "min=",counts.min(),
  print "mean=",counts.sum()/float(size)
  print "frequency matrix sum=",frequencies.sum(),
  print "max=",frequencies.max(), "min=",frequencies.min(),
  print "mean=",frequencies.sum()/float(size)
  print "Number of bits with zero entries",frequencies.nZeroCols()