New Functions

Added to new functions, update_reference, and count.