<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,9 +44,20 @@ class Tumblr
     raise(&quot;Error: Please check your internet connection.&quot;)
   end
   
+  def get_followers_page(reload=false)
+    if reload or not @followers_page
+      @followers_page = agent.get('http://www.tumblr.com/followers')
+    else
+      @followers_page
+    end
+  end
+  
+  def total_followers
+    get_followers_page.to_s.match(/[0-9]+/)[0] # FIXME
+  end
+  
   def get_followers
-    @followers_page = agent.get('http://www.tumblr.com/followers')
-    @followers = @followers_page.search('#following .username').collect(&amp;:content)
+    @followers = get_followers_page.search('#following .username').collect(&amp;:content)
   end
   
   def read_followers
@@ -83,6 +94,7 @@ class Tumblr
     changes += &quot;-----------------------------\n\n&quot;
 
     changes += &quot;
+    Total followers: #{total_followers}
     New followers: #{new_followers.length}
     Lost followers: #{lost_followers.length}
     \n&quot;</diff>
      <filename>loser.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,6 @@ require File.expand_path(File.dirname(__FILE__) + &quot;/spec_helper&quot;)
 describe Tumblr do
   before(:all) do
     @tumblr = Tumblr.new
-    @tumblr.agent.
   end
   
   describe '.new' do
@@ -37,6 +36,13 @@ describe Tumblr do
     end
   end
   
+  describe '#total_followers' do
+    it &quot;should return a number&quot; do
+      puts &quot;Total: #{@tumblr.total_followers}&quot;
+      @tumblr.total_followers.should be_a_kind_of(Integer)
+    end
+  end
+  
   describe &quot;#check_follower_changes&quot; do
     it &quot;should read old followers&quot; do
       @tumblr.should_receive(:read_followers).once.and_return   %w(joe fred hans mike)</diff>
      <filename>spec/loser_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>42d571edc9cbf5dedf2e93c4d98b17ff8eb71431</id>
    </parent>
  </parents>
  <author>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </author>
  <url>http://github.com/zachinglis/tumblrlosr/commit/8b81a0d85b9d342b4e42c8a0582f6abe2e65654c</url>
  <id>8b81a0d85b9d342b4e42c8a0582f6abe2e65654c</id>
  <committed-date>2009-02-19T02:06:00-08:00</committed-date>
  <authored-date>2009-02-19T02:06:00-08:00</authored-date>
  <message>Fixed a bug that caused the system to crash</message>
  <tree>bbcc673d04e02c0c42e8ae325242e8c03ad866b0</tree>
  <committer>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </committer>
</commit>
